STEP 7: Our return variable holds the value that is calculated inside the function, T-rex's moon weight in this case.

  • Go to and drag Return Variable OUTSIDE the function.
  • Change the variable name to dino_moon_weight.
  • Change the function name to get_moon_weight.
  • Add dino as an argument in the function call. Hint: Put it in the empty parentheses.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)